﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Combat/Combat.master" AutoEventWireup="true"
    CodeFile="AptitudeScore.aspx.cs" Inherits="Aptitude_AptitudeScore" StylesheetTheme="Content" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table cellspacing="0" cellpadding="0" width="100%" class="intable">
        <caption>
            <asp:Label ID="caption" runat="server">添加分数</asp:Label>
        </caption>
        <tr>
            <td>
                <asp:UpdatePanel runat="server" ID="panel">
                    <ContentTemplate>
                        选择人员：<asp:DropDownList ID="ddlSoldiers" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSoldiers_SelectedIndexChanged">
                        </asp:DropDownList>
                        &nbsp; 单位：<asp:Label ID="lblDepartmentName" runat="server"></asp:Label>
                        &nbsp;警衔：<asp:Label ID="lblRander" runat="server"></asp:Label></ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td>
                <strong><span style="color: #0000cc">1、体能部分</span> </strong>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DataList ID="dlScore" runat="server" RepeatColumns="3">
                    <ItemTemplate>
                        <table bordercolor="#cccccc" borderstyle="Solid" borderwidth="1px" cellpadding="4"
                            cellspacing="0" gridlines="Both" width="100%">
                            <tr>
                                <td colspan="4" style="background-color: #F1F1F1;">
                                    <asp:Label ID="lblItemName" runat="server" Text='<%#Bind("ItemName") %>' Font-Bold="true"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    成绩：
                                </td>
                                <td>
                                    <asp:TextBox ID="Result" runat="server" Width="50px"></asp:TextBox>
                                </td>
                                <td>
                                    分数：
                                </td>
                                <td>
                                    <asp:TextBox ID="Score" runat="server" Width="30px"></asp:TextBox>
                                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="Score"
                                        ErrorMessage="0~10" MaximumValue="10" MinimumValue="0" Type="Double"></asp:RangeValidator>
                                </td>
                            </tr>
                        </table>
                        <asp:HiddenField ID="ItemID" runat="server" Value='<%#Eval("ItemID") %>' />
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
        <tr>
            <td>
                <span style="color: #0000cc"><strong>2、技能部分 </strong></span>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DataList ID="dlStand" runat="server" RepeatColumns="3">
                    <ItemTemplate>
                        <table bordercolor="#cccccc" borderstyle="Solid" borderwidth="1px" cellpadding="4"
                            cellspacing="0" gridlines="Both" width="100%">
                            <tr>
                                <td colspan="4" style="background-color: #F1F1F1;">
                                    <asp:Label ID="lblItemName" runat="server" Text='<%#Bind("ItemName") %>' Font-Bold="true"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    成绩：
                                </td>
                                <td>
                                    <asp:TextBox ID="Result" runat="server" Width="50px"></asp:TextBox>
                                </td>
                                <td>
                                    达标：
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlStand" runat="server">
                                        <asp:ListItem Value="0">请选择</asp:ListItem>
                                        <asp:ListItem Value="1">达标</asp:ListItem>
                                        <asp:ListItem Value="-1">不达标</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </table>
                        <asp:HiddenField ID="ItemID" runat="server" Value='<%#Eval("ItemID") %>' />
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
        <tr>
            <td>
                <strong><span style="color: #0000cc">3、笔试</span></strong>
            </td>
        </tr>
        <tr>
            <td>
                笔试分数：<asp:TextBox ID="ExamScore" runat="server" Width="50px"></asp:TextBox>
                <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="ExamScore"
                    ErrorMessage="0~100" MaximumValue="100" MinimumValue="0" Type="Double"></asp:RangeValidator>&nbsp;
            </td>
        </tr>
        <tr>
            <td>
                考核组长：<asp:TextBox ID="ExamLeader" runat="server" Width="50px"></asp:TextBox>
                &nbsp; &nbsp; 考核组成员：<asp:TextBox ID="ExamMember" runat="server" Width="150px"></asp:TextBox>
                &nbsp; &nbsp; 考核日期：<asp:TextBox ID="ExamDate" runat="server" Width="78px"></asp:TextBox>
                <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" Animated="False"
                    Format="yyyy-MM-dd" TargetControlID="ExamDate">
                </ajaxToolkit:CalendarExtender>
            </td>
        </tr>
        <tr>
            <td>
                考核标准：<asp:Label ID="lblNote" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnSave" runat="server" Text="更新" OnClick="btnSave_Click" />
            </td>
        </tr>
        <tr>
            <td style="height: 120px">
                <asp:Panel ID="panlPD" runat="server" Height="50px" Visible="False" Width="682px">
                    体能考核总分：<asp:Label ID="lblSumScore" runat="server"></asp:Label>
                    &nbsp; &nbsp;
                    <asp:Label ID="lblStandard" runat="server"></asp:Label>
                    &nbsp;&nbsp; 综合评定:<asp:Label ID="lblPD" runat="server" Font-Bold="True"></asp:Label>
                    &nbsp;&nbsp;
                    <asp:Button ID="btnPD" runat="server" OnClick="btnPD_Click" Text="确定" />
                    <asp:HiddenField ID="hfStandardID" runat="server" />
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>
